package com.example.smartmallserver.demos.web.service;

import com.example.smartmallserver.demos.web.pojo.*;

import java.util.List;
import java.util.Map;

public interface IndexService {

    List<CarouselImage> getCarouselImages();

    List<Navigation> getNavigations();

    List<Goods> getGoods();

    List<Goods> getGoodsByName(String name);

    List<Goods> getGoodsByCategoryId(Integer categoryId);

    Goods getGoodsById(Integer goodsId);

    List<Comment> getCommentByGoodsById(Integer goodsId);

    void addCart(Cart cart);

    Integer getCartCountById(Object id);

    List<Cart> getCartList(Object id);

    void updadeCartCount(Cart cart);

    void deleteCartById(Integer id);

    List<Address> getAddressList(Object id);

    Cart checkOrder(Integer cartId);

    User getUserById(Object id);

    void submitCart(String remark, String cartIds);

    void submitBuyNow(String remark, String goodsId, String goodsNum);

    List<Map<String, Object>> getOrderListByStatus(String status, Integer userId);
}
